/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx.ex;

import java.util.HashSet;

/**
 * <p>Project: javaseapp - SetDemo
 * <p>Powered by webrx On 2021-08-04 09:12:51
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 16
 */
public class SetDemo {
    public static void main(String[] args) {
        var set = new HashSet<Integer>();
        System.out.println(set.size());
        set.add(1);
        set.add(2);
        set.add(22);
        System.out.println(set.size());//1 2 22
    }
}
